package cn.cms.chuangjia.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;


/**
 * admin对象 c_admin
 * <p>
 * //@Excelauthor ruoyi
 * //@Exceldate 2024-01-18
 */
@ApiModel
public class Admin extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ApiModelProperty("编号")
    private Integer id;

    /**
     * 登录名
     */
    //@ExcelExcel(name = "登录名")
    @ApiModelProperty("登录名")
    private String loginname;

    /**
     * 密码
     */
    //@ExcelExcel(name = "密码")
    @ApiModelProperty("密码")
    private String pass;

    /**
     * 注册时间
     */
    //@ExcelJsonFormat(pattern = "yyyy-MM-dd")
    //@ExcelExcel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("注册时间")
    private Date regdate;

    /**
     * 真实姓名
     */
    //@ExcelExcel(name = "真实姓名")
    @ApiModelProperty("真实姓名")
    private String realname;

    /**
     * 职务
     */
    //@ExcelExcel(name = "职务")
    @ApiModelProperty("职务")
    private String rolename;

    /**
     * 等级
     */
    //@ExcelExcel(name = "等级")
    @ApiModelProperty("职务等级")
    private Integer rolelevel;

    /**
     * 是否合法
     */
    //@ExcelExcel(name = "是否合法")
    @ApiModelProperty("用户是否合法，可以登录")
    private Boolean isvalid;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getPass() {
        return pass;
    }

    public void setRegdate(Date regdate) {
        this.regdate = regdate;
    }

    public Date getRegdate() {
        return regdate;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getRealname() {
        return realname;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolelevel(Integer rolelevel) {
        this.rolelevel = rolelevel;
    }

    public Integer getRolelevel() {
        return rolelevel;
    }

    public void setIsvalid(Boolean isvalid) {
        this.isvalid = isvalid;
    }

    public Boolean getIsvalid() {
        return isvalid;
    }

    //@ExcelOverride

    @Override
    public String toString() {
        return "Admin{" +
                "id='" + id + '\'' +
                ", loginname='" + loginname + '\'' +
                ", pass='" + pass + '\'' +
                ", regdate=" + regdate +
                ", realname='" + realname + '\'' +
                ", rolename='" + rolename + '\'' +
                ", rolelevel=" + rolelevel +
                ", isvalid=" + isvalid +
                '}';
    }
}
